package com.wisdudu.blank.data.source.remote.client.retrofit.subscribers;

import com.google.gson.annotations.SerializedName;

/**
 * Created by qyf on 2016/3/21.
 */
public class Abs<T> {
    @SerializedName(value = "errCode", alternate = {"return_num"})
    private int errCode;
    @SerializedName(value = "message", alternate = {"return_msg"})
    private String message;
    @SerializedName(value = "result", alternate = {"return_result"})
    private T result;

    public String getMessage() {
        return message;
    }

    public int getErrCode() {
        return errCode;
    }

    public boolean isSuccess(){
        return errCode==1;
    }

    public T getResult() {
        return result;
    }

}
